package com.baicaoyuan.web.common;

import java.math.BigDecimal;

/**
 * 功能描述：
 *
 * @author 罗富祥
 * 创建时间： 2018/10/9
 * 版权：
 */
public abstract class MsgUtil {
    public static void getVerificationCode(String telephone, String code) {
        String msg = String.format("您的验证码为%s，有效时间120秒。【来赚吧】", code);
        SmsService.do_send_sms(telephone, msg);
    }

    public static void registerSuccess(String telephone) {
        String msg = String.format("恭喜您成功注册来赚吧平台用户，赶快登录体验推广赚钱吧，让您的人脉变成财脉。【来赚吧】");
        SmsService.do_send_sms(telephone, msg);
    }

    public static void apply(String telephone, String projectItemName) {
        String msg = String.format("您办理了来赚吧平台的%s业务，请等待平台受理并登录平台查看业务进度。【来赚吧】", projectItemName);
        SmsService.do_send_sms(telephone, msg);
    }

    public static void applyToAdmin(String userPhone, String projectItemName, String adminPhone) {
        String msg = String.format("用户%s申请了%s，请及时审核。【来赚吧】", userPhone, projectItemName);
        SmsService.do_send_sms(adminPhone, msg);
    }

    public static void checkGetScoreMe(String projectItemName, String mePhone, BigDecimal meScore) {
        String msg1 = String.format("恭喜您在来赚吧兼职平台通过%s业务获得办理者奖励%s积分，快去邀请更多好友注册一起来赚吧！。【来赚吧】", projectItemName, meScore.toString());
        SmsService.do_send_sms(mePhone, msg1);
    }

    public static void checkGetScoreDirect(String projectItemName, String directPhone, BigDecimal directScore) {
        String msg2 = String.format("恭喜您在来赚吧兼职平台通过%s业务获得直推者奖励%s积分，快去邀请更多好友注册一起来赚吧！。【来赚吧】", projectItemName, directScore.toString());
        SmsService.do_send_sms(directPhone, msg2);
    }

    public static void checkGetScoreIndirect(String projectItemName, String indirectPhone, BigDecimal indirectScore) {

        String msg3 = String.format("恭喜您在来赚吧兼职平台通过%s业务获得间推者奖励%s积分，快去邀请更多好友注册一起来赚吧！。【来赚吧】", projectItemName, indirectScore.toString());
        SmsService.do_send_sms(indirectPhone, msg3);
    }

    public static void stockPeriod(String stockPhone) {
        String msg3 = String.format("尊敬的来赚吧pos合伙人，您本期合伙人积分奖励已入账，请登录《来赚吧》查看我的积分，感谢您的支持！【来赚吧】");
        SmsService.do_send_sms(stockPhone, msg3);
    }

    public static void getBusinessMa(String buyPhone, String no, String ma) {
        String msg3 = String.format("尊敬的来赚吧金种子客户，订单号【%s】的金种子提取码: %s 【来赚吧】", no, ma);
        SmsService.do_send_sms(buyPhone, msg3);
    }
}
